#include <iostream>
using namespace std;

int max(int a, int b)
{
    int x = a;
    x = (x > b ? a : b);
    return x;
}

int max(int a, int b, int c)
{
    int x = a;
    x = (x > b ? a : b);
    x = (x > c ? x : c);
    return x;
}

int max(int a, int b, int c, int d)
{
    int x = a;
    x = (x > b ? a : b);
    x = (x > c ? x : c);
    x = (x > d ? x : d);
    return x;
}

int main()
{
    cout << endl
         << "学号：3170608043，姓名：石英钰" << endl
         << endl
         << "Features: 利用函数的重载，求2、3或4个数的最大值" << endl
         << endl;
    cout << "2, 3, 6, 8 最大值为: " << max(2, 3, 6, 8) << endl;
    cout << "2, 6, 8 最大值为: " << max(2, 6, 8) << endl;
    cout << "2, 8 最大值为: " << max(2, 8) << endl;
}